package com.xy.feign;

import com.baomidou.mybatisplus.extension.api.R;
import com.xy.entity.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.io.Serializable;

/**
 * @author xxy
 * @date 2022/1/20 19:19
 */
@FeignClient("docker-dept")
public interface EmpFeignClient {

    @GetMapping("/dept/{id}")
    public R<Dept> selectOne(@PathVariable Serializable id);
}
